import java.io.File;

public class Test03 {
    public static void main(String[] args) {
        File f1=new File("D:\\aaa\\a.txt");
        long len=f1.length();
        System.out.println(len);
        File f2=new File("D:\\aaa\\bbb");
        System.out.println(f2.length());
        System.out.println("========");
        String path1=f1.getAbsolutePath();
        System.out.println(path1);
        File f4=new File("DemonFile\\a.txt");
        String path2=f4.getAbsolutePath();
        System.out.println(path2);
        File f5=new File("D:\\aaa\\a.txt");
        System.out.println("=========");
        String path3=f5.getPath();
        System.out.println(path3);
        File f6=new File("DemonFile01\\a.txt");
        String path4=f6.getPath();
        System.out.println(path4);
        System.out.println("==========");
        File f7=new File("D:\\aaa\\a.txt");
        String name1=f7.getName();
        System.out.println(name1);
        File f8=new File("D:aaa\\bbb");
        String name2=f8.getName();
        System.out.println(name2);
        System.out.println("==========");
        File f9=new File("D:\\aaa\\a.txt");
        long time=f9.lastModified();
        System.out.println(time);
//        1746846399366   1746847470726

        
    }
}
